import ReactDom from 'react-dom/client'
import {StrictMode, Suspense} from "react";
import App from "./AppFunc";
import {HashRouter} from "react-router-dom";
import {ThemeContext} from "./context";

const root = ReactDom.createRoot(document.querySelector('#root'))

root.render(
    // <StrictMode>
    <HashRouter>
        <Suspense fallback={<h3>加载中...</h3>}>
            <ThemeContext.Provider value={{color: 'red', size: 30}}>
                <App/>
            </ThemeContext.Provider>
        </Suspense>
    </HashRouter>
    // </StrictMode>
)